home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat2 / standard / bind.z / bind
Encoding:
Text File  |  2002-10-03  |  2.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. BBBBIIIINNNNDDDD((((2222))))                                                                BBBBIIIINNNNDDDD((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      bind - bind a name to a socket
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ssssoooocccckkkkeeeetttt....hhhh>>>>
  14.  
  15.      iiiinnnntttt bbbbiiiinnnndddd ((((iiiinnnntttt ssss,,,, ccccoooonnnnsssstttt ssssttttrrrruuuucccctttt ssssoooocccckkkkaaaaddddddddrrrr ****nnnnaaaammmmeeee,,,, iiiinnnntttt nnnnaaaammmmeeeelllleeeennnn))));;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _B_i_n_d assigns a name to an unnamed socket.  When a socket is created with
  19.      _s_o_c_k_e_t(2) it exists in a name space (address family) but has no name
  20.      assigned.  _B_i_n_d requests that _n_a_m_e be assigned to the socket.
  21.  
  22.      The rules used in name binding vary between communication domains.
  23.      Consult the protocol manual entries in section 7 for detailed
  24.      information.
  25.  
  26. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  27.      If the bind is successful, a 0 value is returned.  A return value of -1
  28.      indicates an error, which is further specified in the global _e_r_r_n_o.
  29.  
  30. EEEERRRRRRRROOOORRRRSSSS
  31.      The _b_i_n_d call will fail if:
  32.  
  33.      [EBADF]             _S is not a valid descriptor.
  34.  
  35.      [ENOTSOCK]          _S is not a socket.
  36.  
  37.      [EADDRNOTAVAIL]     The specified address is not available from the local
  38.                          machine.
  39.  
  40.      [EADDRINUSE]        The specified address is already in use.
  41.  
  42.      [EINVAL]            The socket is already bound to an address.
  43.  
  44.      [EACCES]            The requested address is protected, and the current
  45.                          user has inadequate permission to access it.
  46.  
  47.      [EFAULT]            The _n_a_m_e parameter is not in a valid part of the user
  48.                          address space.
  49.  
  50.      See also the protocol-specific manual pages for other error values.
  51.  
  52. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  53.      connect(2), listen(2), socket(2), tcp(7P), udp(7P), unix(7F)
  54.  
  55. NNNNOOOOTTTTEEEE
  56.      ABI-compliant versions of the above call can be obtained from
  57.      _l_i_b_s_o_c_k_e_t._s_o.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.